﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using wt.wine.Domain.Entities;

namespace wt.wine.Application.ManageUserTable
{
    public class GetUserTableByIdDTO
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int id { get; set; }
        /// <summary>
        /// 账号
        /// </summary>
        public string account { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string address { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime createtime { get; set; }
        /// <summary>
        /// 后端判断使用，前端可以不调用
        /// </summary>
        public int type { get; set; }
        public List<GetUserTableDeviceList> list { get; set; } = new List<GetUserTableDeviceList>() { };
    }

    public class GetUserTableDeviceList
    {
        public int id { get; set; }
        /// <summary>
        /// 操作人id
        /// </summary>
        public int userid { get; set; }
        /// <summary>
        /// 设备编码
        /// </summary>
        public string deviceid { get; set; }
        /// <summary>
        /// 自定义设备编码
        /// </summary>
        public string cusdeviceid { get; set; }
        public string skuname { get; set; } = "";
    }
}
